package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.common.Vo.ObjectiveQuery;
import com.example.common.Vo.ObjectiveVO;
import com.example.common.Vo.TreeObjectiveVO;
import com.example.entity.Objective;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ptuDai
 * @since 2022-04-19
 */
@Mapper
public interface ObjectiveMapper extends BaseMapper<Objective> {

    IPage<ObjectiveVO> selectVOPage(IPage<ObjectiveVO> pageObjectiveVO, @Param("objectiveQuery") ObjectiveQuery objectiveQuery);

    List<TreeObjectiveVO> tree();
}
